let mongoose=require('mongoose');
let errorSchema=new mongoose.Schema({
    errorAnswer:Number,
    exerciseId:{
        type:mongoose.SchemaTypes.ObjectId,
        ref:'excerciseDB'
    },
    studentId:{
        type:mongoose.SchemaType.ObjectId,
        ref:'studentDB'
    }
})
let errorDB=mongoose.model('errorDB',errorSchema,'errors');
module.exports=errorDB;